FROM python:3.9
# 拷贝项目
COPY . /app/Spider4Mirror
# 切换目录
WORKDIR /app/Spider4Mirror
# 安装依赖
RUN pip install -r requirements.txt -i http://mirrors.myhuaweicloud.com/pypi/web/simple --trusted-host=mirrors.myhuaweicloud.com >/dev/null 2>&1
# 运行采集脚本
ENTRYPOINT python spider/maven_mirror_spider.py